import $axios from '../http';
export function getListAction() {
  return (dispatch) => {
    $axios.get('/api/list').then((res) => {
      console.log('api/list res', res);
      dispatch({
        type: 'SET_LIST',
        data: res
      });
    })
  }
}

export function getMoiveListAction() {
  return (dispatch) => {
    $axios.get('/api/movieList').then((res) => {
      console.log('api moveList res', res);
      dispatch({
        type: "SET_MOVIE_LIST",
        data: res
      })
    })
  }
}